import { IsArray, IsUUID } from 'class-validator';
import { ApiProperty } from '@nestjs/swagger';
import { IAssignPosts } from '@nbase/shared';

/**
 * 为用户分配岗位 DTO
 */
export class AssignPostsDto implements IAssignPosts {
  @ApiProperty({
    description: '岗位ID列表',
    example: ['550e8400-e29b-41d4-a716-446655440000'],
    type: [String]
  })
  @IsArray()
  @IsUUID('4', { each: true })
  postIds!: string[];
}

